are there compiler options in clang? [on hold]
        Posted  
        
            by 
                Deohboeh
            
        on Programmers
        
        See other posts from Programmers
        
            or by Deohboeh
        
        
        
        Published on 2013-11-03T06:50:06Z
        Indexed on 
            2013/11/04
            10:17 UTC
        
        
        Read the original article
        Hit count: 269
        
I am learning from The C++ Primer. One of the exercises is to compile a program with arguments in main(). For this I am trying to use mac terminal.
I need to compile a C++11 Unix executable file named "main" which takes “f" as an argument. I am using Xcode 4.6.3 on OS X Lion.
I compiled the program with clang++ -std=c++11 -stdlib=libc++ main.cpp -o main. But don’t know what to do next.
I found -frecord-gcc-switches while searching compiler options on google. It does what I need to do. Is there a clang version of this?
Please use simple language. I have never used command line before. I tried going through the clang user guide but a lot of it is out of my depth.
© Programmers or respective owner